home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / FCHDIR.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  42 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   FCHDIR  .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NB02.INC"
  19. COLOR 7,0
  20. CLS
  21.  
  22. ? "┌─────────────────────────────────────────────────────────────────────────
  23. ? "│ fChDIR% ( Path$ )   change directory
  24. ? "│ fMkDIR% ( Path$ )   make   directory
  25. ? "│ fRmDIR% ( Path$ )   remove directory
  26. ? "├─────────────────────────────────────────────────────────────────────────
  27. ? "│ These 3 are just like the DOS functions and abide by the same rules.
  28. ? "│ Each returns -1 (TRUE) if the requested action actually took place or
  29. ? "│ not.
  30. ? "│ As these affect your drive I'll leave the testing up to you. You'll have
  31. ? "│ to change $if 0 to $if 1 below to see it work.
  32. ? "└─────────────────────────────────────────────────────────────────────────
  33.  
  34. $if 0
  35.   IF fMkDIR%( "PUREJUNK" ) THEN PRINT "MAKED THE DIRECTORY
  36.   PRINT "DIR$ SAYS: "; DIR$( "PUREJUNK", 16 )
  37.   IF fChDIR%( "PUREJUNK" ) THEN PRINT "CHANGED DIRECTORY"
  38.   IF fChDIR%( ".."       ) THEN PRINT "CHANGED BACK!"
  39.   IF fRmDIR%( "PUREJUNK" ) THEN PRINT "ERASED THE DIRECTORY"
  40.   PRINT "DIR$ SAYS: "; DIR$( "PUREJUNK", 16 )
  41. $endif
  42.